namespace TodoLister.Properties
{
    /// <summary>
    /// 应用程序设置类
    /// </summary>
    public class Settings
    {
        private static Settings _default;
        private double _windowLeft = -1;
        private double _windowTop = -1;

        /// <summary>
        /// 获取默认设置实例
        /// </summary>
        public static Settings Default
        {
            get
            {
                if (_default == null)
                {
                    _default = new Settings();
                }
                return _default;
            }
        }

        /// <summary>
        /// 窗口左边位置
        /// </summary>
        public double WindowLeft
        {
            get => _windowLeft;
            set => _windowLeft = value;
        }

        /// <summary>
        /// 窗口顶部位置
        /// </summary>
        public double WindowTop
        {
            get => _windowTop;
            set => _windowTop = value;
        }

        /// <summary>
        /// 保存设置
        /// </summary>
        public void Save()
        {
            // 在实际应用中，这里可以将设置保存到文件或注册表
            // 为了简单起见，这里我们只保存在内存中
        }
    }
} 